#include <iostream>
#include <string>
#include <Windows.h>

using namespace std;

int main()
{
	SetConsoleCP(1251);
	setlocale(0, "ru");
	string line, word = "";
	line += ' ';
	getline(cin, line);
	int wordsCount = 0;
	bool hasLatin = false;
	for (char ch : line)
	{
		if (ch == ' ')
		{
			wordsCount++;
			cout << word << " Букв: " << word.length() << " " << boolalpha << endl;
			word.clear();
			hasLatin = false;

		}
		else
		{

			word += ch;
			if (ch >= 'a' && ch <= 'z')
				hasLatin = true;
		}
	}
	cout << "Слов: " << wordsCount;

}
